PANEL2D : 2 DIMENSIONAL CFD PANEL PROGRAM

PANEL2D.exe WINDOWS APPLICATION RUNS THE 2-DIMENSIONAL CFD PANEL PROGAM. 

This CFD Model allows the running of a 2D Flow Solver Panel Program Software.

The software is in the form of a Convenient Windows Application that reads in a
prepared "2d Geometry and associated Case Conditions" text file and generates local flow vectors, streamlines and Pressure Coefficient (Cp) distributions throughout a predefined flowfield grid.
Its as basic as you can get:

 - only 2D
 - incompressible
 - inviscid
 - irrotational
 - no Kutta condition at trailing edge, in the case of aerofoils


Its in the form of a Windows Application that makes it reasonably user-friendly. 

It should test the "horsepower" of your processor.

There are two executables:

1. PANEL2D.exe or PANEL2D_FW.exe (freeware version): This runs the 2D Panel Program.
                       The freeware version is limited to 8 panels.
                       The full version can deal with many more panels.
2. CASE_SETUP.exe : This sets up the case data and geometry into a text file, for use with 
                    the above program. (See its separate user guide).

There is actually a third executable PANMETH4X.exe that gets used by the panel program,
but is not to be used directly by the user so do not use it. It is however needed, so do
not remove it.


The program is provided with 2 example test cases that can be run immediately :-
 

(1) An eight-sided cylinder (CYLINDER.txt). It should be noted that this 8 sided cylinder 
solution agrees 100% with the theoretical Cp distribution around a cylinder at the eight 
control points (panel mid-points), such is the power of the panel method. 

(2) An eight-sided Bluff (unstreamlined) Body (BLUFFBODY.TXT).

You can create your own required panel geometries using the CASE_SETUP.EXE program 
mentioned above. 

At the moment, it only outputs visualisations for :-

(A) Local flow vectors throughout the surrounding flowfield 

(B) Streamlines (To various requirements: Custom, Regular, Standard)

(C) A color-coded Cp distribution throughout the surrounding flowfield.

(D) A Chordwise Cp distribution along the body length

Green buttons represent these results. The visualised flowfield velocity vectors, streamlines and Cp values that are displayed can be saved in the folder as bitmap files using user-defined file names.

Temporary ASCII output files containing numerical information for the 
current case are created in the folder: files CFD,CFD2,CFD3,CFD4,CFD5.txt,FLOW.txt and CONSOLE.txt. These files are used by the program but are not intended for reading by the user. 

The Velocity Vectors and Cp values for each of your flowfield points are, however, presented in the RESULTS.TXT file. The last 'N' lines of this RESULTS.TXT file (where N is the number of panels in your geometry) give the speed and Cp results at your control points (panel mid-points). Remember, these latter N points are slightly off the panel (by your chosen parameter, CPDEL value) to avoid singularity effects.  

This software was just created for a bit of fun and not intended for serious use in commercial applications so you can use it as you wish but always please bear that in mind.


HOW TO USE THE APPLICATION

It is assumed here that you have already prepared a Case/Geometry text file containing the 2D coordinates of your geometry using the CASE_SETUP.exe application or you are using one of the supplied test cases.

1. You must first  OPEN your case/geometry file from the FILE/OPEN Menu option.

2. You then need to click the "LOAD" button to Load your case/geometry information to
   the application.

3. You wont see anything until you click the "GEOM" button. The "GEOM" button can be 
   clicked at anytime if you want to see the panel geometry on its own. If you just
   created the case/geometry using the separate CASE_SETUP.exe program, it's possible 
   that the geometry may be too large or too small and/or not centred on the screen
   to your liking. Everytime you click the "GEOM" button a dialog box will also popup 
   allowing you to scale and move your geometry until you are happy with its size and
   position. When this dialog box pops up you can click its scaling and positioning
   buttons as many times as you like to increase the effect before clicking "OK". 
   After clicking "OK" you must click the "SAVE" and "LOAD" buttons again to save        these changes. After clicking "SAVE" and "LOAD" you will need to click the "GEOM"     button again in order to see the updated geometry.

4. The windspeed and incidence angle etc at the top of the screen can also be edited, 
   but remember to save these values and reload the case by clicking "SAVE" and       "LOAD" once again, if you edited them. In the case of incidence (Angle of Attack)     the resulting onset flow throughout the flowfield will be displayed inclined to       the horizontal by your entered value (this may not look ideal). The alternative    way of modelling incidence is to rotate your geometry to the required incidence       angle [click "GEOM" and hit the ROTATE (NOSEUP or NOSEDOWN) buttons repeatedly       until you reach the required angle], the onset flow direction will then be       horizontal. You can keep track of this rotation by observing the value of the       "ROT" parameter at the top of the Application window. 
 
5. Once you are happy with the case values, geometry scale and position of your case,
   Hit the "RUN PANEL PROGRAM" button to execute the panel program. After a few          moments,depending on how many panels you have used and the density of the             Flowfield points, the Panel Program results can be viewed. There are four results     buttons (shown as green buttons) at the top of the screen:  (1) FLOW VECTORS (2)      STREAMLINES (3) CP (A Cp Color-coded distribution), and (4) CP2 (A Length or       chordwise Cp distribution). 
   The Flow moves from Left to Right and the local FLOW VECTORS are represented as a 
   little line emanating from a dot (the position of the flow vector). The length of 
   these little lines is controllable when you use the "CASE_SETUP.exe program (see
   parameter "DELFLOW" when you run the "CASE_SETUP.exe program). These little lines
   are identical and do not represent the absolute velocity value. (See RESULTS.TXT 
   file for absolute local velocity values).
 
6. FLOWFIELD button. Clicking this button opens up a dialog box prompting you to edit
   the Required Flowfield grid for your cases. You will probably leave these values
   unchanged for most of your cases and the information is stored in the FLOWDEF.txt 
   file supplied when you downloaded the software. The dialog box simply asks for
   the X,Y extents of the flowfield grid that you require for the solution, i.e. 
   parameters XMIN,XMAX,XDEL and YMIN,YMAX,YDEL. At the bottom of the dialog box
   the extent of your geometry (xmin,xmax,ymin,ymax) is provided for your reference.
   Do not change these values, they are there just to compare with what flowfield
   values you want to enter relative to them. Also bear in mind that the bigger and 
   denser your flowfield is, the more processing power the panel program will use.
   You can view the Flowfield by clicking the "VIEW FLOWFIELD" button.

7. SAVE TO BMP: You have the option to save the flow vector and Cp distribution          images on the screen to .bmp files by clicking the "SAVE TO BMP" button after         plotting the results. 

8. Consult the RESULTS.TXT file for velocity vectors and Cp values at your flowfield 
   points.
